package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 2级分类的Vo
 */
@NoArgsConstructor//生成无参构造器
@AllArgsConstructor//生成全参构造器
@Data
public class Catalog2Vo {

    private String catalog1Id;//1级父分类id

    private List<Category3Vo> catalog3List;//3级子分类

    private String id;

    private String name;

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    //3级分类的Vo
    public static class Category3Vo {
        private String catalog2Id;//父分类，2级分类的id
        private String id;
        private String name;
    }

}
